package com.atguigu.common.base.repository;

import com.atguigu.common.base.entity.AutoIdBase;
import org.springframework.data.repository.NoRepositoryBean;

import java.util.Optional;

@NoRepositoryBean
public interface BaseRepository<T extends AutoIdBase, ID> extends ParallelSaveRepository<T,ID> {
    Optional<T> findFirstByOrderByIdDesc();
    Optional<T> findFirstByOrderByUpdateTimeDesc();

}
